package com.example.back;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@EnableFeignClients
@EnableDiscoveryClient
@EnableJpaAuditing
@ComponentScan(basePackages = "com.example")
@EntityScan(basePackages = "com.example.common.entity")
@MapperScan(basePackages = "com.example.back.mapper")
@SpringBootApplication
// @EnableJpaRepositories(repositoryBaseClass = JpaRepositoryReBuild.class)
@EnableAspectJAutoProxy
public class BackApplication {

    public static void main(String[] args) {
        SpringApplication.run(BackApplication.class, args );
    }

}
